package com.thread;

public class TestJoid implements Runnable {
	
	@Override
	public void run() {
		
		
	}
	
	public static void main(String[] args) throws InterruptedException{
		Thread t = new Thread(new TestJoid());
		t.start();
		t.sleep(3000);
		t.join();//等待t线程运行结束
		if(t.isAlive()){
			System.out.println("t isalive");
		}else{
			System.out.println("t is not alive");
		}
	}
	

}
